package edu.spec.wyn.week08.class1;

public class Ellipse extends Circle implements IDraw{
    public void draw() {
        System.out.println("draw a ellipse");
    }

    public static void main(String[] args) {
        //父类的引用指向子类 的对象
        IDraw s=new Shape();
        Shape c=new Circle();
        Shape e=new Ellipse();
        s.draw();
        // c.draw();
        e.draw();
    }
}
